import request from '@/utils/request'

// 查询电费结算列表
export function listElectricitybilling(query) {
  return request({
    url: '/zsw/electricitybilling/list',
    method: 'get',
    params: query
  })
}

// 查询电费结算详细
export function getElectricitybilling(billingId) {
  return request({
    url: '/zsw/electricitybilling/' + billingId,
    method: 'get'
  })
}

// 新增电费结算
export function addElectricitybilling(data) {
  return request({
    url: '/zsw/electricitybilling',
    method: 'post',
    data: data
  })
}

// 修改电费结算
export function updateElectricitybilling(data) {
  return request({
    url: '/zsw/electricitybilling',
    method: 'put',
    data: data
  })
}

// 删除电费结算
export function delElectricitybilling(billingId) {
  return request({
    url: '/zsw/electricitybilling/' + billingId,
    method: 'delete'
  })
}

//提交支付
export function submitBilling(billingId) {
  return request({
    url: '/zsw/electricitybilling/submitBilling/' + billingId,
    method: 'get'
  })
}

//未审批列表
export function listBillingNo(query) {
  return request({
    url: '/zsw/electricitybilling/listNo',
    method: 'get',
    params:query
  })
}

//获取审批租单信息
export function getElectricitybillingInfo(billingId){
  return request({
    url: '/zsw/electricitybilling/getElectricitybilling/'+billingId,
    method: 'get'
  })
}

//完成审批
export function billingConfirmed(data){
  return request({
    url: '/zsw/electricitybilling/confirmed',
    method: 'post',
    data: data
  })
}




